import request from '@/utils/request';

export async function getDriveParaCalG120ByPage(params: any) {
  return request('/api/drivePara/getDriveParaCalG120ByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addDriveParaCalG120(params: any) {
  return request('/api/drivePara/addDriveParaCalG120', {
    method: 'POST',
    data: params,
  });
}

export async function updateDriveParaCalG120(params: any) {
  return request('/api/drivePara/updateDriveParaCalG120', {
    method: 'POST',
    data: params,
  });
}


export async function delDriveParaCalG120(params: any) {
  return request('/api/drivePara/delDriveParaCalG120', {
    method: 'POST',
    data: params,
  });
}

export async function delDriveParasCalG120(params: any) {
  return request('/api/drivePara/delDriveParasCalG120', {
    method: 'POST',
    data: params,
  });
}

export async function uploadDriveParasCalG120Excel(params: any) {
  return request('/api/drivePara/uploadDriveParasCalG120Excel', {
    method: 'POST',
    requestType: 'form',
    data: params,
  });
}


export async function calDriveParasCalG120(params: any) {
  return request('/api/drivePara/calDriveParasCalG120', {
    method: 'POST',
    data: params,
  });
}

/**
 * 下载excel
 * @param params
 * @returns
 */
export async function driveParaCalG120ExcelExport(params: any) {
  return request('/api/drivePara/driveParaCalG120ExcelExport', {
    method: 'POST',
    responseType: 'blob',
    data: params,
  });
}
